package com.example.sunmiv1.entity.member;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018-05-18.
 */

public class MemberListBean {


    /**
     * recharge : [{"id":"27","money":"1.00","give":"100.00","addtime":"1537948957","merchantid":"1"},{"id":"28","money":"0.01","give":"20.00","addtime":"1537949020","merchantid":"1"},{"id":"31","money":"0.10","give":"0.10","addtime":"1542356976","merchantid":"1"}]
     * status : 1
     * msg : 刷新成功
     * count : 72
     * viplist : [{"id":"3","mobile_phone":"13812345678","integral":"3990","addtime":"2018-08-22","balance":"102.00","card_key":"223457865","status":"3","grade":"1","cardname":"銀卡會員","zname":"文璽"}]
     */

    private int status;
    private String msg;
    private String count;
    private List<RechargeBean> recharge;
    private List<VipListBean> vip_list;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public List<RechargeBean> getRecharge() {
        return recharge;
    }

    public void setRecharge(List<RechargeBean> recharge) {
        this.recharge = recharge;
    }

    public List<VipListBean> getVip_list() {
        if (vip_list == null) {
            return new ArrayList<>();
        }
        return vip_list;
    }

    public void setVip_list(List<VipListBean> vip_list) {
        this.vip_list = vip_list;
    }

    public static class RechargeBean {
        /**
         * id : 27
         * money : 1.00
         * give : 100.00
         * addtime : 1537948957
         * merchantid : 1
         */

        private String id;
        private String money;
        private String give;
        private String addtime;
        private String merchantid;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getMoney() {
            return money;
        }

        public void setMoney(String money) {
            this.money = money;
        }

        public String getGive() {
            return give;
        }

        public void setGive(String give) {
            this.give = give;
        }

        public String getAddtime() {
            return addtime;
        }

        public void setAddtime(String addtime) {
            this.addtime = addtime;
        }

        public String getMerchantid() {
            return merchantid;
        }

        public void setMerchantid(String merchantid) {
            this.merchantid = merchantid;
        }
    }

    public static class VipListBean implements Serializable {
        /**
         * id : 3
         * mobile_phone : 13812345678
         * integral : 3990
         * add_time : 2018-08-22
         * balance : 102.00
         * card_key : 223457865
         * status : 3
         * grade : 1
         */

        private String id;
        private String mobile_phone;
        private String integral;
        private String add_time;
        private String balance;
        private String card_key;
        private String status;
        private String grade;
        private String grade_id;
        private String nickname;
        private String name;
        private String status_name;
        private String end_time;
        private int operation_vip;

        public String getId() {
            return id == null ? "" : id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getMobile_phone() {
            return mobile_phone.trim() == null ? "" : mobile_phone.trim();
        }

        public void setMobile_phone(String mobile_phone) {
            this.mobile_phone = mobile_phone;
        }

        public String getIntegral() {
            return integral == null ? "" : integral;
        }

        public void setIntegral(String integral) {
            this.integral = integral;
        }

        public String getAdd_time() {
            return add_time == null ? "" : add_time;
        }

        public void setAdd_time(String add_time) {
            this.add_time = add_time;
        }

        public String getBalance() {
            return balance == null ? "" : balance;
        }

        public void setBalance(String balance) {
            this.balance = balance;
        }

        public String getCard_key() {
            return card_key.trim() == null ? "" : card_key.trim();
        }

        public void setCard_key(String card_key) {
            this.card_key = card_key;
        }

        public String getEnd_time() {
            return end_time == null ? "" : end_time;
        }

        public void setEnd_time(String end_time) {
            this.end_time = end_time;
        }

        public String getStatus() {
            return status == null ? "" : status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getGrade() {
            return grade == null ? "普通會員" : grade;
        }

        public void setGrade(String grade) {
            this.grade = grade;
        }

        public String getGrade_id() {
            return grade_id == null ? "" : grade_id;
        }

        public void setGrade_id(String grade_id) {
            this.grade_id = grade_id;
        }

        public String getNickname() {
            return nickname == null ? "" : nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getName() {
            return TextUtils.isEmpty(name.trim() == null ? "" : name.trim()) ? "未設置" : name.trim();
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getStatus_name() {
            return status_name == null ? "" : status_name;
        }

        public void setStatus_name(String status_name) {
            this.status_name = status_name;
        }

        public int getOperation_vip() {
            return operation_vip;
        }

        public void setOperation_vip(int operation_vip) {
            this.operation_vip = operation_vip;
        }
    }
}
